import mapDialog from '../components/map-dialog'
export const dialogMixin = {
  components: {
    mapDialog
  },
  props: {
    visible: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    watchVisibleAndId() {
      const { visible, id } = this
      return {
        visible,
        id
      }
    }
  },
  methods: {
    handleCloseDialog() {
      this.$emit('close')
    }
  },
  data() {
    return {
      mapDialogLoading: false
    }
  }
}
